QT += serialport widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Refer to the documentation for the
# deprecated API to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        auto/autoclose.cpp \
        auto/autodelete.cpp \
        auto/autolog.cpp \
        conversationdelegate.cpp \
        conversationmodel.cpp \
        debugwindow.cpp \
        io/buffercache.cpp \
        io/io.cpp \
        io/serialport.cpp \
        main.cpp \
        portmodel.cpp \
        serialport/packetparser.cpp \
        serialport/portmonitor.cpp \
        serialport/serialclient.cpp \
        serialport/serialserver.cpp

RESOURCES +=

TRANSLATIONS += \
    GateController_zh_CN.ts

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    auto/autoclose.h \
    auto/autodelete.h \
    auto/autolog.h \
    cfg.h \
    conversationdelegate.h \
    conversationmodel.h \
    debugwindow.h \
    io/buffercache.h \
    io/io.h \
    io/serialport.h \
    portmodel.h \
    serialport/packetparser.h \
    serialport/portmonitor.h \
    serialport/serialclient.h \
    serialport/serialserver.h

win32 {
    SOURCES += \
        serialport/portmonitorwindows.cpp

    HEADERS += \
        serialport/portmonitorwindows.h
}
unix {
    SOURCES += \
        serialport/portmonitorlinux.cpp

    HEADERS += \
        serialport/portmonitorlinux.h
}

FORMS += \
    debugwindow.ui
